<template>
	<div>
		<panle title='操作日志' content="操作日志不能进行操作"></panle>
		<el-table :data="tableData" style="width: 100%;margin-top: 20px;" row-key="id" :header-cell-style="{background:'#f9f9f9'}" stripe default-expand-all
		 v-loading="loading" >
			
			<el-table-column prop="logid" label="记录号" ></el-table-column>
			
			<el-table-column prop="action" label="行为"></el-table-column>
			<el-table-column prop="content" label="描述"></el-table-column>
		
			<el-table-column prop="type" label="行为类型"></el-table-column>
			<el-table-column prop="username" label="操作者"></el-table-column>
		
		
			<el-table-column prop="ip" label="操作IP"></el-table-column>
			<el-table-column prop="creat_time" label="操作时间"></el-table-column>
			
		</el-table>
	</div>
</template>

<script>
	let _self;
	import Panle from '@/components/Panle';
	import {getLogList} from '@/api/system/log';
	export default{
		components:{
			Panle
		},
		data(){
			return{
				tableData:[],
				loading: false,
				pageSize: 10, //一页显示多少条
				pageNumber: 1,
				total: 0, //总页数
			}
		},
		created() {
			_self = this;
			_self.init();
		},
		methods:{
			init:function(){
				let param = {
					"pageSize": _self.pageSize,
					"pageNumber": _self.pageNumber,
					
				}
				getLogList(param).then((res)=>{
					_self.tableData = res.data.list;
					_self.total = res.data.total;
					_self.loading = false;
				})
			}
		}
	}
</script>

<style lang="scss">
	@import "@/assets/css/common.scss";
</style>
